|
![](/i/fill.gif) |
Andrew Coppin wrote:
> What do div() and mod() do in the case of negative numerator/denominator?
POV-Ray's answers are:
div(7, 3) = 2 mod(7, 3) = 1
div(-7, 3) = -2 mod(-7, 3) = -1
div(7, -3) = -2 mod(7, -3) = 1
div(-7, -3) = 2 mod(-7, -3) = -1
whereas the correct answers are:
div(7, 3) = 2 mod(7, 3) = 1
div(-7, 3) = -3 mod(-7, 3) = 2
div(7, -3) = -2 mod(7, -3) = 1
div(-7, -3) = 3 mod(-7, -3) = 2
This has annoyed me a lot. If they fixed the broken gradient pattern, why
can't they fix the equally broken div() and mod() functions?
Anders
Post a reply to this message
|
![](/i/fill.gif) |